#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""
bootstrap
"""
from src.common.log import init_log, logger
import src.resource.service as service
from src.service.agent import AgentService

def init():
    """ init """
    # 初始化日志
    init_log('conf/log.yaml')

    # 初始化service
    init_services()

def init_services():
    """ init services """
    service.agent_service = AgentService(agent_yaml="{{cookiecutter.agent_yaml}}")